package object_ManPower;

import javax.swing.*;

public class ManpowerTest {
    public static void main(String[] args) {
        Manpower power = new Manpower();
        power.login();
        while (true){
            String item = JOptionPane.showInputDialog(null,"选择进行的操作\n1-添加员工\n2-显示员工信息\n" +
                    "3-删除员工\n4-修改员工工资\n5-退出");
            switch (item){
                case "1":
                    power.add();
                    break;
                case "2":
                    power.informShow();
                    break;
                case "3":
                    power.delete();
                    break;
                case "4":
                    power.changSalary();
                    break;
                case "5":
                    JOptionPane.showMessageDialog(null,"谢谢使用");
                    System.exit(0);
                default:
                    JOptionPane.showMessageDialog(null,"选项不存在，输入1-5");
                    break;
            }


        }

    }
}
